<template>
  <div id="app">
    <!-- <h1>{{ num }}</h1>
    <button @click="addNum">点击++</button> -->
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  watch: {
    $route: {
      handler() {
        console.log('watch')
      }
      // immediate: true
    }
  },
  created() {}
}
</script>
